package com.example.myapplication.hilt

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import javax.inject.Named

/**
 * 类描述:
 * 创建人:   tangchao$
 * 创建时间: 2021/8/9$ 8:54 AM$
 * 联系方式: 419704299@qq.com
 * 修改人:   tangchao$
 * 修改时间: 2021/8/9$ 8:54 AM$
 * 修改备注:  [说明本次修改内容]
 */
@Module
@InstallIn(ActivityComponent::class)
object AnalyticsModule {

    @Named(NAME_TITLE)
    @Provides
    fun testname(): String {
        return "限定符标题"
    }

    @Named(NAME_DESC)
    @Provides
    fun testname1(): String {
        return "限定符标题"
    }
}

const val NAME_TITLE = "NAME_TITLE"
const val NAME_DESC = "NAME_DESC"